﻿using System.Data.Entity;
using WinFormSQLServerLoginDemo.Entity;

namespace WinFormSQLServerLoginDemo.EF6
{
    internal class MyDbContext : DbContext
    {
        private static string IP = "localhost";
        private static string DB = "BookShop";
        private static string User_Id = "sa";
        private static string PASSWORD = "root";

        public DbSet<User> Users { get; set; }

        public MyDbContext() : base($"Server='{IP}';Database='{DB}';User Id='{User_Id}';Password='{PASSWORD}';") { }
    }
}
